package online.longzipeng.back.common.enums;

import lombok.Getter;

/**
 * @author lzp
 * @Description: 团队消息的状态枚举
 */
@Getter
public enum TeamMessageStatusEnum {

    // 对应的团队信息的状态 密友 点赞 协议 实名认证
    PENDING(0, "待定"),
    AGREE(1, "同意"),
    REJECT(2, "拒接");

    public final Integer status;
    public final String message;

    TeamMessageStatusEnum(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public static String getMsgByKey(Integer status) {
        for (TeamMessageStatusEnum type : TeamMessageStatusEnum.values()) {
            if (type.getStatus().equals(status)) {
                return type.message;
            }
        }
        return null;
    }

}
